# put common definitions in here
CC	= gcc
CFLAGS	= -Wall -g -I../include -I../include/sys #include dir is meant to be used one level down
LIBS	= 
ECHO	= echo

SHELL	= /bin/sh
MV = mv
RM = rm

UNAME	= $(shell uname)
ifeq ($(UNAME), Linux)
OS	= Linux
else
OS	= Windows
endif

USING_GCOV = no
ifeq ($(USING_GCOV), yes)
CFLAGS  += -fprofile-arcs -ftest-coverage
LIBS	+= -lgcov
endif

ifeq ($(OS), Linux)
CFLAGS	+= `xml2-config --cflags`
LIBS	+= `xml2-config --libs`
else #We are using Windows
CFLAGS	+=
LIBS	+= -largp
endif

.SILENT :